package com.web.rabitmq.sender.com.web.config;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 一个叫做queue的队列
 */
@Configuration
public class DirectSenderConfig {
    @Bean
    public Queue queue() {
        return new Queue("queue");//队列名叫queue
    }
}